package com.hh85.movetab;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

public class HomeFragment extends Fragment {

private View rootView;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

      String name =  getArguments().getString("name");
       // Log.i("TAG",name);
        rootView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_home,container,false);
       TextView nameText = (TextView) rootView.findViewById(R.id.id_name);
       nameText.setText(name);
        return rootView;
    }
}
